﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpSphinx.SharpSphinx.Util.Configuration
{
    public class SaxLoader
    {
        private  Uri uri; 
        private  Dictionary<String,RawPropertyData> rpMap;
        private Dictionary<String, String> globalProperties;
        private bool replaceDuplicates; 



        /// <summary>
        /// Creates a loader that will load from the given location
        /// </summary>
        /// <param name="url">the location to load</param>
        /// <param name="globalProperties">the map of global properties</param>
        /// <param name="initRPD"></param>
        /// <param name="replaceDuplicates"></param>
        public SaxLoader(Uri url,Dictionary<String,String> globalProperties, Dictionary<String, RawPropertyData> initRPD, bool replaceDuplicates)
        {
            this.uri = url;
            this.globalProperties = globalProperties;
            this.replaceDuplicates = replaceDuplicates;
            this.rpMap = initRPD == null ? new Dictionary<string, RawPropertyData>() : initRPD; 

        }


        /// <summary>
        /// Creates a loader that will load from the given location
        /// </summary>
        /// <param name="uri">the location to load</param>
        /// <param name="globalProperties">the map of global properties</param>
        public SaxLoader(Uri uri,Dictionary<String,String> globalProperties)
        { 
            this.uri = uri;
            this.globalProperties = globalProperties;
            this.rpMap = null;
            this.replaceDuplicates = false;
        
        }


    /*    public Dictionary<String,RawPropertyData> load()
        {



        }*/



    }
}
